﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tvdbInterface
{
    /// <summary>
    /// TvDB-Search-Result-Object Class.
    /// </summary>
    public class SearchResult : Object
    {
        private string _ShowTitle = String.Empty;

        /// <summary>
        /// Get the Title of the found Show-Item.
        /// </summary>
        public string ShowTitle
        {
            get
            {
                return _ShowTitle;
            }
        }

        private int _TvdbID = 0;

        /// <summary>
        /// Get the Show-Database-ID for TvDB.
        /// </summary>
        public int TvdbID
        {
            get
            {
                return _TvdbID;
            }
        }

        private string _Overview = String.Empty;

        /// <summary>
        /// Get the Show-Overview (plot).
        /// </summary>
        public string Overview
        {
            get
            {
                return _Overview;
            }
        }

        private string _BannerURL = String.Empty;

        public string BannerURL
        {
            get
            {
                return _BannerURL;
            }
        }

        /// <summary>
        /// Initialize a new SearchResult-Object.
        /// </summary>
        /// <param name="sShowTitle">(string) Found Show Title.</param>
        /// <param name="iTvdbID">(int) TvDB Database-ID.</param>
        public SearchResult(string sShowTitle, int iTvdbID, string sOverview, string sBannerImageURL)
        {
            _ShowTitle = sShowTitle;
            _TvdbID = iTvdbID;
            _Overview = sOverview;
            _BannerURL = sBannerImageURL;
        }

        public override string ToString()
        {
            return ShowTitle;
        }
    }
}
